<form class="form-horizontal well" method="post" action="{$insertURL}"  target="">
    <fieldset>
        <legend>Introducere pagina noua</legend>
        {ci_form_validation field='navigation_name' error='true' assign='navigation_name'}
        {ci_form_validation field='title' error='true' assign='title'}
        
        <div class="control-group {if isset($navigation_name) && $navigation_name != ''}error{/if}">
            <label class="control-label" for="navigation_name">Identificator:</label>
            <div class="controls">
                <input type="text" class="input-xlarge" id="navigation_name" name="navigation_name" value="{ci_form_validation field='navigation_name'}">
                {if isset($navigation_name) }{$navigation_name}{/if}
                <p class="help-block">Identificator unic al articolului (care va aparea si in link)</p>
                 
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="language">Limba</label>
            <div class="controls">
                <select id="language" name="language">
                    <option>Romana</option>
                    <option>Engleza</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="parent_id">Parinte</label>
            <div class="controls">
                <select id="parent_id" name="parent_id">
                        <option value="0">Home</option>
	                {foreach from=$levels item=itm}
					    <option value="{$itm->navigation_id}">{$itm->navigation_name}</li>
					{/foreach}					
                </select>
            </div>
        </div>
        <div class="control-group {if isset($title) && $title != ''}error{/if}">
            <label class="control-label" for="title">Titlu</label>
            <div class="controls">
                <input type="text" class="input-xlarge" id="title" name="title" value="{ci_form_validation field='title'}">
                {if isset($title) }{$title}{/if}
                <p class="help-block">Identificator unic al articolului</p>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="url">Link articol</label>
            <div class="controls">
                <div class="input-prepend">
                    <span class="add-on">{$base_url}</span>
                    <input id="url" class="input-xlarge" type="text">
                </div>
                <p class="help-block">Here's some help text</p>
            </div>
        </div>                
        <div class="control-group">
            <label class="control-label" for="description">Descriere</label>
            <div class="controls">
                <textarea class="input-xlarge" id="description" rows="5" name="description"></textarea>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="static_content">Articol</label>
            <div class="controls">
                <textarea class="input-xlarge" id="static_content" rows="5" name="static_content"></textarea>
            </div>
        </div>          
        <div class="control-group">
            <label class="control-label" for="active">Active</label>
            <div class="controls">
                <label class="checkbox">
                    <input type="checkbox" id="active" name="active">
                    Daca se bifeaza articolul este public
                </label>
            </div>
        </div>
        <div class="control-group">
            <button type="submit" class="btn btn-primary" name="action" value="submit">Adauga</button>
            <button class="btn">Renunta</button>
        </div>
    </fieldset>
</form>